package com.ch.home.bean;

import java.util.Date;

/**
 * 消息，用于用户、通知等
 * Created by CHEN on 2019/8/20.
 *
 */
public class Message {

    private Integer messageId;//消息id
    private Integer senderId;//发送者id
    private Integer receiverId;//接收者id
    private String messageContent;//消息内容
    private Date time;//消息发送时间
    private Integer status;//消息状态

    @Override
    public String toString() {
        return "Message{" +
                "messageId=" + messageId +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", messageContent='" + messageContent + '\'' +
                ", time=" + time +
                ", status=" + status +
                '}';
    }

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Message() {
    }

    public Message(Integer messageId, Integer senderId, Integer receiverId, String messageContent, Date time, Integer status) {
        this.messageId = messageId;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.messageContent = messageContent;
        this.time = time;
        this.status = status;
    }
}
